package com.kzf.controller;

import com.kzf.pojo.LogPageResult;
import com.kzf.pojo.LogQueryParam;
import com.kzf.pojo.Result;
import com.kzf.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired
    private LogService logService;
    @GetMapping("/page")
    public Result getLog(LogQueryParam logQueryParam){
        LogPageResult logPageResult = logService.getLogList(logQueryParam);
        return Result.success(logPageResult);
    }
}
